//$(document).on('tap', '.my_order_back', function() {
//	mui.back();
//})
mui.init();
window.onload = function() {
	mui.plusReady(function() {
		self = plus.webview.currentWebview();
		id = self.silberId;
		console.log(JSON.stringify(id))
		$('#orderId').html(self.silver_order_no)
		$('#moneyId').html('-'+self.balance )
		$('#timeId').html(self.time )
		$('#numberDetail').html(self.numberDetail )
		$('#balance').html('+'+self.balance )
		$('#status').html(self.status)
		Detail();
	});
}
//返回user页面
$(document).on('tap', '.go_user', function() {
	window.top.location.href = "../my/silver_record.html";
})
var id;
function Detail(){
	mui.ajax(user_url + '/api/silver/recordInfo',{
		data:{
			id: id
		},
		dataType: 'json', //服务器返回json格式数据
		type: 'post', //HTTP请求类型
		timeout: 10000, //超时时间设置为10秒；
		success:function(data){
			console.log(JSON.stringify(data))
			$('#orderId').html(data.resp.silver_order_no)
			$('#moneyId').html('-'+data.resp.balance )
			$('#timeId').html(data.resp.time )
			$('#numberDetail').html(data.resp.number )
			$('#balance').html('+'+data.resp.balance )
			$('#status').html(data.resp.status)
		}
	})
}

//二级按钮退出APP

mui.back = function() {
	//首次按键，提示‘再按一次退出应用’
	window.top.location.href = "../my/silver_record.html";
};